package com.xxxx.yygh.hospital.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Lee.s
 * @description
 * @date 2021/03/11 9:30
 */
@Configuration
@MapperScan("com.xxxx.yygh.hospital.mapper")
public class HospitalConfig {

    /**
     * Mybatis分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
